package com.extend_.improve;

/**
 * @Author 小闽
 * @Date 2024/8/9 9:31
 * @PackageName: com.extend_.improve
 * @ClassName: Student
 * @Description: 继承改进
 * @Version 1.0
 */
public class Student {
    public String name;
    public int age;
    private double score;

    public void setScore(double score) {
        this.score = score;
    }
    public void showInfo(){
        System.out.println("姓名：" + name + "年龄：" + age + "成绩：" + score);
    }
}
